<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>  
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
<title>查看店铺基本信息</title>
</head>

<body>
  <form id="inputForm" action="${ctx}/member/shop" method="post" class="form-horizontal">
    <input type="hidden" name="id" value="${shop.id}"/>
    <input type="hidden" name="memberUser.id" value="${shop.memberUser.id}"/>

    <fieldset>
        <legend><small>店铺资料修改</small></legend>
        <div class="control-group">
            <label for="name" class="control-label">店铺名称:</label>
            <div class="controls">
                <input type="text" id="name" name="name" value="${shop.name}" class="input-large required"/>
            </div>
        </div>
        <div class="control-group">
            <label for="domainName" class="control-label">个性化域名:</label>
            <div class="controls">
                <input type="text" id="domainName" name="domainName" value="${shop.domainName}" class="input-large required"/>
            </div>
        </div>
        <div class="control-group">
            <label for="status" class="control-label">状态:</label>
            <div class="controls">
              <input type="text" id="status" name="status" value="${shop.status}" class="input-large required"/>
            </div>
        </div>
        <div class="control-group">
            <label for="contactor" class="control-label">联系人:</label>
            <div class="controls">
              <input type="text" id="contactor" name="contactor" value="${shop.contactor}" class="input-large"/>
            </div>
        </div>
        <div class="control-group">
            <label for="cellphone" class="control-label">手机号码:</label>
            <div class="controls">
              <input type="text" id="cellphone" name="cellphone" value="${shop.cellphone}" class="input-large"/>
            </div>
        </div>
        <div class="control-group">
            <label for="phone" class="control-label">固定电话号码:</label>
            <div class="controls">
              <input type="text" id="phone" name="phone" value="${shop.phone}" class="input-large"/>
            </div>
        </div>
        <div class="control-group">
            <label for="fax" class="control-label">传真号码:</label>
            <div class="controls">
              <input type="text" id="fax" name="fax" value="${shop.fax}" class="input-large"/>
            </div>
        </div>
        <div class="control-group">
            <label for="email" class="control-label">电子邮件:</label>
            <div class="controls">
              <input type="text" id="email" name="email" value="${shop.email}" class="input-large"/>
            </div>
        </div>
        <div class="control-group">
            <label for="introduction" class="control-label">店铺介绍:</label>
            <div class="controls">
              <textarea id="introduction" name="introduction">${shop.introduction}</textarea>
            </div>
        </div>
    </fieldset>
    <fieldset>
        <div class="form-actions">
            <input id="submit_btn" class="btn btn-primary" type="submit" value="提交"/>&nbsp; 
            <input id="cancel_btn" class="btn" type="button" value="返回" onclick="history.back()"/>
        </div>
    </fieldset>
  </form>
</body>
</html>
